home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1998 #3
/
Amiga Plus CD - 1998 - No. 3.iso
/
pd
/
daten
/
vworlds30_install
/
install
< prev
next >
Wrap
Text File
|
1997-11-02
|
2KB
|
107 lines
; Install VWorlds V3.0
; This script installs VWorlds. Checks for needed libraries, OS version
; CPU, adds an assign to S:UserStartup, and installs VWorlds.config to S:
(transcript "Installing VWorlds...")
(set #intromsg (cat "\nThis installs VWorlds V3.0 on your hard\n"
"disk and checks your Kickstart and CPU.\n"))
(message #intromsg)
;Check to see what version of the OS we're running on.
(if (< (/ (getversion) 65536) 39)
(
(if (<> 1 (askbool (help @askbool-help) (prompt (cat "You must be using Kickstart 3.0+ to run VWorlds.\n"
"\n"
"Do you wish to continue anyway?\n"))))
(
(abort "Aborting as the Kickstart is not sufficient.")
)
)
)
)
; Check to see what CPU we're running on.
(if (>= 68020 (database "cpu"))
(
(if (<> 1 (askbool (help @askbool-help) (prompt (cat
"\nYou need a 68020 CPU or better to run VWorlds.\n"
"\nDo you wish to continue anyway?\n"))))
(
(abort "Aborting as the CPU is not sufficient.")
)
)
)
)
;Get the destination directory from the user
(set wheredir
(askdir
(prompt "Select a directory where you would like to install "
"VWorlds. (A drawer will be created there)")
(help @askdir-help)
(default @default-dest)
)
)
;Create the directory for VWorlds
(set wheredir (tackon wheredir "VWorlds3.0"))
(makedir wheredir (infos))
(working "Installing VWorlds...")
;Copy all of the files over to the destination
(copyfiles
(prompt "")
(help @copyfiles-help)
(pattern "~(Install|Install.info)")
(infos)
(source (pathonly @icon))
(dest wheredir)
)
;Add an assign to user startup
(startup "VWORLDS"
(prompt "I need to add an assign to your\n\"s:user-startup\" file.")
(help @startup-help)
(command ("assign VWORLDS: \"%s\"\n" wheredir))
)
;Copy vworlds.config file to S:
(if (exists "s:vworlds.config")
(
(if (<> (getsize "s:vworlds.config") 372)
(
(copyfiles (prompt "Copying new vworlds.config") (help @copyfiles-help)
(source "vworlds.config") (dest "s:") (files))
)
(
(if (askbool (help @askbool-help) (prompt
(cat "\nMay I copy the new vworlds.config over\n"
"your current vworlds.config file?\n")))
(
(copyfiles (prompt "Copying new vworlds.config") (help @copyfiles-help)
(source "vworlds.config") (dest "s:") (files))
)
)
)
)
)
(
(copyfiles (prompt "Copying new vworlds.config") (help @copyfiles-help)
(source "vworlds.config") (dest "s:"))
)
)
(exit "Please reboot your computer before running\nVWorlds.")